package com.cloudlead.common.lang.exception;

import com.cloudlead.common.lang.BizRuntimeException;
import com.cloudlead.common.lang.api.ResponseCode;

/**
 * 资源文件无法定位或者找到
 *
 * @author Dean Lu
 */
public class ResourceNotFoundException extends BizRuntimeException {

    /**
     *
     */
    private static final long serialVersionUID = 9189063436132535285L;

    public ResourceNotFoundException() {
        this(null);
    }

    public ResourceNotFoundException(String msg) {
        this(msg, null);
    }

    public ResourceNotFoundException(String msg, Throwable t) {
        this(0, msg, t);
    }

    public ResourceNotFoundException(int businessCode) {
        this(businessCode, null);
    }

    public ResourceNotFoundException(int businessCode, String msg) {
        this(businessCode, msg, null);
    }

    public ResourceNotFoundException(int businessCode, String msg, Throwable t) {
        super(msg, t, ResponseCode.RESOURCE_NOT_FOUND, businessCode);
    }
}
